

import 'package:elephant_fish/TRTCChatSalonDemo/ui/base/UserEnum.dart';
import 'package:elephant_fish/TRTCChatSalonDemo/ui/list/VoiceRoomCreate.dart';
import 'package:elephant_fish/TRTCChatSalonDemo/ui/list/VoiceRoomList.dart';
import 'package:elephant_fish/TRTCChatSalonDemo/ui/room/VoiceRoomPage.dart';
import 'package:elephant_fish/TRTCLiveRoomDemo/ui/list/LiveRoomCreate.dart';
import 'package:elephant_fish/TRTCLiveRoomDemo/ui/list/LiveRoomList.dart';
import 'package:elephant_fish/TRTCLiveRoomDemo/ui/room/LiveRoomPage.dart';
import 'package:elephant_fish/page/home_page.dart';
import 'package:elephant_fish/page/login_page.dart';
import 'package:elephant_fish/page/perfect_information_page.dart';
import 'package:elephant_fish/page/register_page.dart';
import 'package:elephant_fish/page/reset_password_page.dart';
import 'package:elephant_fish/page/update_info_page.dart';
import 'package:elephant_fish/page/user_personal_interface_page.dart';
import 'package:flutter/material.dart';


final String initialRoute = "/";
final Map<String, WidgetBuilder> routes = {

  "/index": (context) => HomePage(),
  "/updateInfo": (context) => UpdateInfoPage(),
  "/reset/password": (context) => ResetPasswordPage(),
  "/userPersonalInterface": (context) => UserPersonalInterfacePage(),
  "/login": (context,{arguments}) => LoginPage(arguments:arguments),
  "/register/perfectInformation": (context) => PerfectInformationPage(),
  "/login/register": (context) => RegisterPage(),
  "/liveRoom/roomAudience": (context) => LiveRoomPage(isAdmin: false),
  "/liveRoom/roomAnchor": (context,{arguments}) => LiveRoomPage(isAdmin: true,arguments:arguments),
  "/liveRoom/roomCreate": (context,{arguments}) => LiveRoomCreatePage(arguments:arguments),
  "/liveRoom/list": (context) => LiveRoomListPage(),
  "/chatSalon/list": (context) => VoiceRoomListPage(),
  "/chatSalon/roomCreate": (context) => VoiceRoomCreatePage(),
  "/chatSalon/roomAnchor": (context) => VoiceRoomPage(UserType.Anchor),
  "/chatSalon/roomAudience": (context) => VoiceRoomPage(UserType.Audience),
};
